const menuList = [
  {
    menuName: '博客管理',
    menuCode: 'blogManage',
    iconCls: 'logo-octocat',
    children: [
      {
        menuName: '我的博客',
        menuCode: 'myBlog',
        path: '/my-blog',
        iconCls: 'logo-reddit'
      },
      {
        menuName: '博客编辑',
        menuCode: 'blogEdit',
        path: '/blog-edit',
        iconCls: 'ios-create-outline'
      },
    ]
  },
  {
    menuName: '项目管理',
    menuCode: 'projectManage',
    iconCls: 'ios-folder',
    children: [
      {
        menuName: '我的项目',
        menuCode: 'myProject',
        path: '/my-project',
        iconCls: 'ios-folder-outline'
      },
      {
        menuName: '项目编辑',
        menuCode: 'projectEdit',
        path: '/project-edit',
        iconCls: 'ios-create-outline'
      },
    ]
  },
  {
    menuName: '链接管理',
    menuCode: 'linkManage',
    iconCls: 'ios-link',
    children: [
      {
        menuName: '友情链接',
        menuCode: 'link-list',
        path: '/link-list',
        iconCls: 'ios-link-outline'
      },
    ]
  },
  {
    menuName: '用户管理',
    menuCode: 'userManage',
    iconCls: 'ios-contacts',
    children: [
      {
        menuName: '用户列表',
        menuCode: 'user-list',
        path: '/user-list',
        iconCls: 'ios-contacts-outline'
      },
    ]
  },
  {
    menuName: '留言管理',
    menuCode: 'discussManage',
    iconCls: 'md-chatboxes',
    children: [
      {
        menuName: '留言列表',
        menuCode: 'discuss-list',
        path: '/discuss-list',
        iconCls: 'ios-chatboxes-outline'
      },
    ]
  },
];

let smallMenuList = [];
menuList.map(item => {
  if(item.children && item.children.length>0) {
    item.children.map(sbuItem=> {
      sbuItem.parentMenuName = item.menuName;
      smallMenuList.push(sbuItem)
    })
  }
});

export {
  menuList,
  smallMenuList
}